public class Test {
    public static void main(String[] args) {
        //Mouse mouse = new Mouse();
       // Keyboard keyboard = new Keyboard();

       Computer computer = new Computer();
       computer.poweron();
        //computer.useDevice(mouse);
        //computer.useDevice(new Keyboard());
        computer.useDevice(new Mouse());
        computer.poweroff();
    }
}
